#!/bin/sh

CC=gcc
AR=ar

$CC -shared -fPIC -c threadpool.c -o threadpool.o -O2
$CC -shared -fPIC threadpool.o -o libthreadpool.so -O2
$AR rcs libthreadpool.a threadpool.o
$CC test.c libthreadpool.a -o test -lpthread -O2
rm *.o
